package iedcyt.acute.dataAccess.dao.acute1;

import iedcyt.acute.dataAccess.domain.acute1.Corp;

import java.sql.ResultSet;
import java.sql.SQLException;



import org.springframework.jdbc.core.ResultSetExtractor;



public class CorpResultSetExtractor implements ResultSetExtractor<Corp> {

	@Override
	public Corp extractData(ResultSet rs) throws SQLException {
		
		Corp doc  = new Corp(rs.getInt("idCorp"), rs.getString("Corp"), rs.getBoolean("Duplicated"),
				rs.getBoolean("Colaboration"),rs.getBoolean("vague"));
		

		return doc;
	}

}
